<template>
  <a-config-provider :locale="locale">
    <router-view />
  </a-config-provider>
</template>

<script>
import { defineComponent, reactive, toRefs } from "vue";
import zhCN from "ant-design-vue/es/locale/zh_CN";
import dayjs from "dayjs";
import "dayjs/locale/zh-cn";
dayjs.locale("zh-cn");

export default defineComponent({
  name: "sysUser",
  props: {},
  emits: [],
  setup(props, context) {
    const data = reactive({
      locale: zhCN
    }); //里面写所有的响应式数据，像vue2中的data一样

    return {
      ...toRefs(data)
    };
  },
  components: {}
});
</script>
<style>
#app {
  font-family: "微软雅黑", Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 14px;
}
</style>
